<%@ page import="java.util.HashMap,common.CommonUtil,java.util.*,common.*" contentType="text/html; charset=utf-8" %><%
UserSession userSession = (UserSession)session.getAttribute("user"); 

String login_id = null;
String user_id = null;

if(userSession!= null){
	login_id = userSession.getLogin_id();
	user_id = userSession.getUser_id();
}

HashMap listMap=(HashMap)request.getAttribute("list_map");

HashMap map  = null;
ArrayList list=null;


if (listMap!=null){
    list=(ArrayList)listMap.get("mainContent");
}

//System.out.println("list ========> " + list);

String rrg_code 		= "";
String rrg_eng_name 		= "";
String rrg_kor_name 		= "";
String use_yn 		= "";
String reg_dt	= "";
String eng_yn 		= "";
String sort	= "";

if(list != null){
	if(list.size() > 0){
		rrg_code = (String)((HashMap)list.get(0)).get("rrg_code");
		rrg_eng_name = (String)((HashMap)list.get(0)).get("rrg_eng_name");
		rrg_kor_name = (String)((HashMap)list.get(0)).get("rrg_kor_name");
		use_yn = (String)((HashMap)list.get(0)).get("use_yn");
		
		eng_yn = (String)((HashMap)list.get(0)).get("eng_yn");
		sort = (String)((HashMap)list.get(0)).get("sort");
		
		System.out.println("list ========> " + list);
	}
}

%>
<script>
parent.document.mainform.rrg_code.value = '<%=rrg_code%>';
parent.document.mainform.rrg_eng_name.value = '<%=rrg_eng_name%>';
parent.document.mainform.rrg_kor_name.value = '<%=rrg_kor_name%>';
parent.document.mainform.sort.value = '<%=sort%>';
if('<%=use_yn%>'=='Y'){
	parent.document.mainform.use_yn[0].checked = true;
}else{
	parent.document.mainform.use_yn[1].checked = true;
}

if('<%=eng_yn%>'=='Y'){
	parent.document.mainform.eng_yn[0].checked = true;
}else{
	parent.document.mainform.eng_yn[1].checked = true;
}

</script>
